package com.atguigu.lease.common.exception;

import com.atguigu.lease.common.result.ResultCodeEnum;
import lombok.AllArgsConstructor;
import lombok.Data;

//准备自定义异常处理  方便与前端用户交互
@Data
@AllArgsConstructor
public class LeaseException extends RuntimeException{

    private ResultCodeEnum resultCodeEnum;

    /*public LeaseException(ResultCodeEnum resultCodeEnum) {
        this.resultCodeEnum = resultCodeEnum;
    }*/
}
